package com.example.administrator.idocment.msgpack.modelpack;

import com.example.administrator.idocment.docment.tool.UpFlag;
import com.example.administrator.idocment.msgpack.MediaModel;

/**
 * Created by Administrator on 2017/9/6 0006.
 */
public class DocModel implements MediaModel {

    Boolean selectState=false;
    Boolean upState=false;
    Boolean proState=false;

    int imgResource;
    String title;
    String date;
    String size;
    String path;

    public int getImgResource() {
        return imgResource;
    }

    public void setImgResource(int imgResource) {
        this.imgResource = imgResource;
    }

    @Override
    public int getImageResource() {
        return imgResource;
    }



    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    @Override
    public Boolean getUpState() {
        return UpFlag.upKey.get(path)!=null;
    }

    @Override
    public void setUpState(Boolean upState) {
        if(upState)
        {
            UpFlag.upKey.put(path,true);
        }

        this.upState=upState;
    }

    @Override
    public Boolean getSelectState() {
        return selectState;
    }

    @Override
    public void setSelectState(Boolean selectState) {
        this.selectState=selectState;
    }

    @Override
    public Boolean getProState() {
        return proState;
    }

    @Override
    public void setProState(Boolean proState) {
        this.proState=proState;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

}